<?php

class Dwoo_Plugin_resource extends Dwoo_Plugin { 
	public function process($file) {
		$execContainer = $this->dwoo->readVarInto('container', $this->dwoo->getData());
		$templateName = $execContainer->getAttribute('templateName', 'org.welcomescreen');
		$routing = $execContainer->getContext()->getRouting();
		return $routing->gen('deliver.resource', array('templateName' => $templateName, 'file' => $file));
	}
}

?>